import request from "@/utils/request";

const api_name = "/admin/cmn/dict";

export default {
  //根据医院类型查询医院的等级和地区
  findByDictCode(dictCode) {
    return request({
      url: `${api_name}/findByDictCode/${dictCode}`,
      method: "get"
    });
  },
  //根据父节点id查询子节点数据
  findByParentId(parentId) {
    return request({
      url: `${api_name}/findChildData/${parentId}`,
      method: "get"
    });
  }
};
